﻿@{
    ViewBag.Title = "Index";
    Layout = null;

    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<div class="listpage verticalSplitContainer" style="height:100%;">
<form method="post" action="@Url.Action("Query")" ratio="#92">
<div class="querybar">
        <table class="querytable">
            <tbody><tr>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">用户名：</span><input type="text" name="UserName" class="textInput">
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">姓名：</span><input type="text" name="Name" class="textInput">
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">职位：</span>
                               <select name="Position">
                                    <option value="">全部</option>
                                    <option value="1">销售数据录入员</option>
                                    <option value="8">营销数据录入员</option>
                                    <option value="9">财务数据录入员</option>
                                    <option value="10">售后数据录入员</option>
                                    <option value="2">销售经理</option>
                                    <option value="3">售后经理</option>
                                    <option value="4">市场经理</option>
                                    <option value="5">门店总经理</option>
                                    <option value="12">销售辅导老师</option>
                                    <option value="11">经销商辅导老师</option>
                                    <option value="-1">骐翔管理员</option>
                               </select>
                           </div>
                       </td>
                   </tr>
                   <tr>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">店名：</span><input type="text" name="StoreName" class="textInput">
                           </div>
                       </td>
                       <td>
                           <div class="queryitem">
                               <span class="querytitle">经销商代码：</span><input type="text" name="StoreCode" class="textInput">
                           </div>
                       </td>
                       <td>
                            <div class="queryitem">
                               <span class="querytitle">帐号状态：</span>
                               <select name="Status">
                                <option value="0">全部</option>
                                <option value="1">正常</option>
                                <option value="-1">关闭</option>
                               
                               </select>
                           </div>
                       </td>
                   </tr>
            </tbody></table>
        <div class="querybuttonbar">
            <div class="simplebutton"><div class="r"><button type="button" class="submit">检索</button></div></div>
        </div>
        <div class="clear"></div>
    </div>
</form>
@if (CurrentUser.Position == S4Store.Domain.Position.SystemManager)
{
<div class="panelBar"  ratio="#25">
	<ul class="toolBar">
		<li class=""><a target="dialog" href="@Url.Action("Add")" backtype="html" refreshonclose="true"><span class="icon add">添加用户</span></a></li>
	    <li class=""><a target="dialog" href="@Url.Action("Modify")" backtype="html" refreshonclose="true" beforechk="link.onlySelectOne()"  postdata="{id:link.getSelectid()}"><span class="icon edit">修改用户资料</span></a></li>

		<li class=""><a confirm="确定要关闭吗?" target="ajax" href="@Url.Action("Close")" backtype="refresh" postdata="{ids:link.getSelectids()}"><span  class="icon delete">关闭用户帐号</span></a></li>
        <li class=""><a confirm="确定要开启帐号吗?" target="ajax" href="@Url.Action("Open")" backtype="refresh" postdata="{ids:link.getSelectids()}"><span  class="icon delete">开启用户帐号</span></a></li>
	</ul>
</div>
}
<div  ratio="*" class="verticalSplitContainer dataRefresh">
@Html.Action("Query")
</div>
</div>